package com.roncoo.eshop.inventory.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.roncoo.eshop.inventory.model.User;
import com.roncoo.eshop.inventory.service.UserService;

/**
 * Copyright: Copyright (c) 2019 Hu-Cheng
 * 
 * @ClassName: UserController.java
 * @Description: 用户控制层
 *
 * @version: v1.0.0
 * @author: hucheng
 * @date: 2019年9月18日 下午5:12:12
 *
 */
@Controller
public class UserController {

	@Autowired
	private UserService userService;

	@RequestMapping("getUserInfo")
	@ResponseBody
	public User getUserInfo() {
		return userService.getUserInfo();
	}

	@RequestMapping("getCacheUserInfo")
	@ResponseBody
	public User getCacheUserInfo() {
		return userService.getCacheUserInfo();
	}
}
